﻿@{
    ViewBag.Title = "增加镇";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}


<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>基础管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a>基础管理</a>
            </li>
            <li>
                <a href="/Admin/Foundation/AddTown">增加镇</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>区县增加 <small><a href="/Admin/Foundation/District">区县管理</a></small></h5>
                </div>
                <div class="ibox-content">
                    @using (Html.BeginForm("AddTown", "Foundation", FormMethod.Post, new { id = "frmAddDistrict", @class = "form-horizontal" }))
                    {
                        @Html.AntiForgeryToken()
                        <div class="form-group">
                            <label class="col-sm-2 control-label">城市</label>
                            <div class="col-sm-10">
                                <select name="CityID" id="slCity" class="form-control" style="width:200px;">
                                    <option value="">请选择城市</option>
                                    @foreach (var item in ViewBag.Cities)
                                    {
                                        <option value="@item.ID">@item.CityName</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">区县</label>
                            <div class="col-sm-10">
                                <select id="slDistrict" class="form-control" name="DistrictID" style="width:200px;"></select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">镇名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="镇名称" name="TownName">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="reset">重置</button>
                            </div>
                            <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>

